"""
#!/usr/bin/python3
# coding:utf-8            
#
# Copyright (C) 2024 - 2024 Jasonakeke， Inc. All Rights Reserved 
# @Desc	   ：通过执行命令创建数据库的表
# @Time    : 2024/11/4 21:39
# @Author  : Code_By_Jasonakeke
# @Email   : 2284037977@qq.com
# @File    : test_migrate.py
# @IDE     : PyCharm
"""
from flask_migrate import Migrate, MigrateCommand
from flask_script import Manager

from Shopping import create_app
from comment.models import db

# 初始化 app
app = create_app('develop')
manager = Manager(app)
Migrate(app, db)
manager.add_command('shopping_db', MigrateCommand)

if __name__ == '__main__':
    manager.run()

